// components/Goods/big-good/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    good: {
      type: Object
    },
    countDownList: {
      type: Array,
      value: []
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onDetails({currentTarget}) {
      let id = currentTarget.dataset.id
      this.triggerEvent('details', id)
    },

    snapUp({ currentTarget}) {
      let id = currentTarget.dataset.id
      this.triggerEvent('snapup', id)
    }
  }
})
